//
//  UIViewController+ZFBShowAlertMsg.m
//  01-ZFB
//
//  Created by My Mac on 2017/6/6.
//  Copyright © 2017年 MyMac. All rights reserved.
//

#import "UIViewController+ZFBShowAlertMsg.h"

@implementation UIViewController (ZFBShowAlertMsg)

-(void)showAlertWithTitle:(NSString *)title message:(NSString *)msg preferredStyle:(UIAlertControllerStyle)style actionTitle:(NSString *)actionTitle titleStyle:(UIAlertActionStyle)titleStyle handler:(void (^)(UIAlertAction *))handler
{
    UIAlertController *alert = [UIAlertController alertControllerWithTitle:title message:msg preferredStyle:style];
    [alert addAction:[UIAlertAction actionWithTitle:actionTitle style:titleStyle handler:handler]];
    [self presentViewController:alert animated:YES completion:nil];
}

@end
